require('./db');
let mongoose = require('mongoose');
module.exports={
    load:()=>{
        mongoose.model('AutoNumber', require('./model/autonumber'));
        mongoose.model('Dictionary', require('./model/dictionary'));
        mongoose.model('User', require('./model/user'));
        mongoose.model('Admin', require('./model/admin'));
        mongoose.model('Worker', require('./model/worker'));
        mongoose.model('Token', require('./model/token'));
        mongoose.model('WeChatUser', require('./model/weChatUser'));
        mongoose.model('Company', require('./model/company'));
        mongoose.model('Job', require('./model/job'));
    }
};
